package com.dys.testio10;

import java.io.Serializable;

/**
 * @className: src.main.java.com.dys.testio10.Person
 * @description: Serializable叫标识接口
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/08/16 下午11:45
 */
public class Person implements Serializable {
    /**
     * 序列号版本标识符静态常量
     */
    private static final long serialVersionUID = 1L;
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
